home *** CD-ROM | disk | FTP | other *** search
- #include <A4Stuff.h>
- #include <SetupA4.h>
- #include <Sound.h>
- #include "Ahhhhhh.h"
- #include "AhhGlobals.h"
- SndListHndl mySoundH = nil;
-
- //#define USE_DEBUGGER_CALLS
-
- void SetMeUp (void)
- {
- OSErr myErr = 0;
- /* initialize the globals in _this file_ */
-
- mySoundH = (SndListHndl)GetResource(kSoundType,kLoadSoundID);
- myErr = SndPlay(nil, mySoundH, false);
- ReleaseResource((Handle)mySoundH);
-
- mySoundH = (SndListHndl)GetResource(kSoundType,kSoundID);
- DetachResource((Handle)mySoundH);
- myErr = SndPlay(nil, mySoundH, false);
- }
-
- void PlayMySound( void )
- {
- OSErr myErr = 0;
-
- if (mySoundH==nil) return;
- myErr = SndPlay(nil, mySoundH, false);
- }